﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Du_Lich
{
    public partial class MainForm : Form
    {
       
        public MainForm(int i)
        {
            InitializeComponent();
            if (i == 0) { btnDangXuat.Enabled = false; btnDangNhap.Enabled = true; }
            else
            {
                btnDangXuat.Enabled = true; btnDangNhap.Enabled = false;
            }
        }
        private void MainForm_Load(object sender, EventArgs e)
        {
            
        }

        private void đăngNhậpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            DangNhapForm dn = new DangNhapForm();
            dn.ShowDialog();
            
        }


        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void QuanLyNhanVien_Click(object sender, EventArgs e)
        {
            QuanLyNhanVienForm ql = new QuanLyNhanVienForm();
            ql.ShowDialog();
        }

        private void TuyenDungDaoTao_Click(object sender, EventArgs e)
        {
            TuyenDungDaoTaoForm tddt = new TuyenDungDaoTaoForm();
            tddt.ShowDialog();
        }


        private void QuanLyKhachHang_Click(object sender, EventArgs e)
        {
            ThongTinKhachHangForm ttkh = new ThongTinKhachHangForm();
            ttkh.ShowDialog();
        }

        private void đăngXuấtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            MainForm dn = new MainForm(0);
            dn.Show();
        }

        private void NghienCuuThiTruong_Click(object sender, EventArgs e)
        {
            NghienCuuThiTruongForm nctt = new NghienCuuThiTruongForm();
            nctt.ShowDialog();
        }

        private void LapKeHoachTour_Click(object sender, EventArgs e)
        {
            KeHoachTourForm kht = new KeHoachTourForm();
            kht.ShowDialog();
        }

        private void XepLichNhanVien_Click(object sender, EventArgs e)
        {
            XepLichNhanVienForm xl = new XepLichNhanVienForm();
            xl.ShowDialog();
        }

        private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

    }
}
